<?php

use think\facade\Route;

Route::get('package/:id', 'Software/info')
    ->pattern(['id' => '\d+']);

Route::get('article/:id', 'Article/info')
    ->pattern(['id' => '\d+']);

Route::get('package/download/:mirror/:id', 'Software/download')
    ->pattern(['mirror' => '\d+', 'id' => '\d+']);

Route::get('package/mirror-:id', 'Software/mirror')
    ->pattern(['id' => '\d+']);

Route::get('/sitemap.xml', 'Index/sitemap');

Route::redirect('/$', 'https://wampserver.site/Index/index.html', 302);

